import {WidgetClass} from "./widget";

export class WidgetPoint extends WidgetClass {
  constructor(options = {}) {
    super(options);
    const {ports} = options
    if (ports) {
      this.ports = ports;
    } else {
      this.ports = this.assembleDefaultPorts();
    }
  }

  assembleDefaultPorts() {
    const superState = super.assembleDefaultPorts();
    return {
      ...superState
    };
  }
}
